package com.arkisv.common.model;

import java.io.Serializable;

public class ParamLog implements Serializable {
    private Long paramId;

    private String eventId;

    private Long createTime;

    private String uri;

    private String params;

    private String sheme;

    private String serverName;

    private String serverPort;

    private String protocol;

    private String remoteAddr;

    private String remoteHost;

    private String characterEncoding;

    private Integer contentLength;

    private String contentType;

    private String authType;

    private String httpMethod;

    private String pathInfo;

    private String pathTrans;

    private String queryString;

    private String remoteUser;

    private String sessionId;

    private String requestUrl;

    private String servletPath;

    private String accept;

    private String host;

    private String referer;

    private String acceptLanguage;

    private String acceptEncoding;

    private String userAgent;

    private String connection;

    private String cookie;

    private static final long serialVersionUID = 1L;

    public Long getParamId() {
        return paramId;
    }

    public void setParamId(Long paramId) {
        this.paramId = paramId;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId == null ? null : eventId.trim();
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri == null ? null : uri.trim();
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params == null ? null : params.trim();
    }

    public String getSheme() {
        return sheme;
    }

    public void setSheme(String sheme) {
        this.sheme = sheme == null ? null : sheme.trim();
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName == null ? null : serverName.trim();
    }

    public String getServerPort() {
        return serverPort;
    }

    public void setServerPort(String serverPort) {
        this.serverPort = serverPort == null ? null : serverPort.trim();
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol == null ? null : protocol.trim();
    }

    public String getRemoteAddr() {
        return remoteAddr;
    }

    public void setRemoteAddr(String remoteAddr) {
        this.remoteAddr = remoteAddr == null ? null : remoteAddr.trim();
    }

    public String getRemoteHost() {
        return remoteHost;
    }

    public void setRemoteHost(String remoteHost) {
        this.remoteHost = remoteHost == null ? null : remoteHost.trim();
    }

    public String getCharacterEncoding() {
        return characterEncoding;
    }

    public void setCharacterEncoding(String characterEncoding) {
        this.characterEncoding = characterEncoding == null ? null : characterEncoding.trim();
    }

    public Integer getContentLength() {
        return contentLength;
    }

    public void setContentLength(Integer contentLength) {
        this.contentLength = contentLength;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType == null ? null : contentType.trim();
    }

    public String getAuthType() {
        return authType;
    }

    public void setAuthType(String authType) {
        this.authType = authType == null ? null : authType.trim();
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod == null ? null : httpMethod.trim();
    }

    public String getPathInfo() {
        return pathInfo;
    }

    public void setPathInfo(String pathInfo) {
        this.pathInfo = pathInfo == null ? null : pathInfo.trim();
    }

    public String getPathTrans() {
        return pathTrans;
    }

    public void setPathTrans(String pathTrans) {
        this.pathTrans = pathTrans == null ? null : pathTrans.trim();
    }

    public String getQueryString() {
        return queryString;
    }

    public void setQueryString(String queryString) {
        this.queryString = queryString == null ? null : queryString.trim();
    }

    public String getRemoteUser() {
        return remoteUser;
    }

    public void setRemoteUser(String remoteUser) {
        this.remoteUser = remoteUser == null ? null : remoteUser.trim();
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId == null ? null : sessionId.trim();
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl == null ? null : requestUrl.trim();
    }

    public String getServletPath() {
        return servletPath;
    }

    public void setServletPath(String servletPath) {
        this.servletPath = servletPath == null ? null : servletPath.trim();
    }

    public String getAccept() {
        return accept;
    }

    public void setAccept(String accept) {
        this.accept = accept == null ? null : accept.trim();
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host == null ? null : host.trim();
    }

    public String getReferer() {
        return referer;
    }

    public void setReferer(String referer) {
        this.referer = referer == null ? null : referer.trim();
    }

    public String getAcceptLanguage() {
        return acceptLanguage;
    }

    public void setAcceptLanguage(String acceptLanguage) {
        this.acceptLanguage = acceptLanguage == null ? null : acceptLanguage.trim();
    }

    public String getAcceptEncoding() {
        return acceptEncoding;
    }

    public void setAcceptEncoding(String acceptEncoding) {
        this.acceptEncoding = acceptEncoding == null ? null : acceptEncoding.trim();
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent == null ? null : userAgent.trim();
    }

    public String getConnection() {
        return connection;
    }

    public void setConnection(String connection) {
        this.connection = connection == null ? null : connection.trim();
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie == null ? null : cookie.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ParamLog other = (ParamLog) that;
        return (this.getParamId() == null ? other.getParamId() == null : this.getParamId().equals(other.getParamId()))
            && (this.getEventId() == null ? other.getEventId() == null : this.getEventId().equals(other.getEventId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUri() == null ? other.getUri() == null : this.getUri().equals(other.getUri()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getSheme() == null ? other.getSheme() == null : this.getSheme().equals(other.getSheme()))
            && (this.getServerName() == null ? other.getServerName() == null : this.getServerName().equals(other.getServerName()))
            && (this.getServerPort() == null ? other.getServerPort() == null : this.getServerPort().equals(other.getServerPort()))
            && (this.getProtocol() == null ? other.getProtocol() == null : this.getProtocol().equals(other.getProtocol()))
            && (this.getRemoteAddr() == null ? other.getRemoteAddr() == null : this.getRemoteAddr().equals(other.getRemoteAddr()))
            && (this.getRemoteHost() == null ? other.getRemoteHost() == null : this.getRemoteHost().equals(other.getRemoteHost()))
            && (this.getCharacterEncoding() == null ? other.getCharacterEncoding() == null : this.getCharacterEncoding().equals(other.getCharacterEncoding()))
            && (this.getContentLength() == null ? other.getContentLength() == null : this.getContentLength().equals(other.getContentLength()))
            && (this.getContentType() == null ? other.getContentType() == null : this.getContentType().equals(other.getContentType()))
            && (this.getAuthType() == null ? other.getAuthType() == null : this.getAuthType().equals(other.getAuthType()))
            && (this.getHttpMethod() == null ? other.getHttpMethod() == null : this.getHttpMethod().equals(other.getHttpMethod()))
            && (this.getPathInfo() == null ? other.getPathInfo() == null : this.getPathInfo().equals(other.getPathInfo()))
            && (this.getPathTrans() == null ? other.getPathTrans() == null : this.getPathTrans().equals(other.getPathTrans()))
            && (this.getQueryString() == null ? other.getQueryString() == null : this.getQueryString().equals(other.getQueryString()))
            && (this.getRemoteUser() == null ? other.getRemoteUser() == null : this.getRemoteUser().equals(other.getRemoteUser()))
            && (this.getSessionId() == null ? other.getSessionId() == null : this.getSessionId().equals(other.getSessionId()))
            && (this.getRequestUrl() == null ? other.getRequestUrl() == null : this.getRequestUrl().equals(other.getRequestUrl()))
            && (this.getServletPath() == null ? other.getServletPath() == null : this.getServletPath().equals(other.getServletPath()))
            && (this.getAccept() == null ? other.getAccept() == null : this.getAccept().equals(other.getAccept()))
            && (this.getHost() == null ? other.getHost() == null : this.getHost().equals(other.getHost()))
            && (this.getReferer() == null ? other.getReferer() == null : this.getReferer().equals(other.getReferer()))
            && (this.getAcceptLanguage() == null ? other.getAcceptLanguage() == null : this.getAcceptLanguage().equals(other.getAcceptLanguage()))
            && (this.getAcceptEncoding() == null ? other.getAcceptEncoding() == null : this.getAcceptEncoding().equals(other.getAcceptEncoding()))
            && (this.getUserAgent() == null ? other.getUserAgent() == null : this.getUserAgent().equals(other.getUserAgent()))
            && (this.getConnection() == null ? other.getConnection() == null : this.getConnection().equals(other.getConnection()))
            && (this.getCookie() == null ? other.getCookie() == null : this.getCookie().equals(other.getCookie()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getParamId() == null) ? 0 : getParamId().hashCode());
        result = prime * result + ((getEventId() == null) ? 0 : getEventId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUri() == null) ? 0 : getUri().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getSheme() == null) ? 0 : getSheme().hashCode());
        result = prime * result + ((getServerName() == null) ? 0 : getServerName().hashCode());
        result = prime * result + ((getServerPort() == null) ? 0 : getServerPort().hashCode());
        result = prime * result + ((getProtocol() == null) ? 0 : getProtocol().hashCode());
        result = prime * result + ((getRemoteAddr() == null) ? 0 : getRemoteAddr().hashCode());
        result = prime * result + ((getRemoteHost() == null) ? 0 : getRemoteHost().hashCode());
        result = prime * result + ((getCharacterEncoding() == null) ? 0 : getCharacterEncoding().hashCode());
        result = prime * result + ((getContentLength() == null) ? 0 : getContentLength().hashCode());
        result = prime * result + ((getContentType() == null) ? 0 : getContentType().hashCode());
        result = prime * result + ((getAuthType() == null) ? 0 : getAuthType().hashCode());
        result = prime * result + ((getHttpMethod() == null) ? 0 : getHttpMethod().hashCode());
        result = prime * result + ((getPathInfo() == null) ? 0 : getPathInfo().hashCode());
        result = prime * result + ((getPathTrans() == null) ? 0 : getPathTrans().hashCode());
        result = prime * result + ((getQueryString() == null) ? 0 : getQueryString().hashCode());
        result = prime * result + ((getRemoteUser() == null) ? 0 : getRemoteUser().hashCode());
        result = prime * result + ((getSessionId() == null) ? 0 : getSessionId().hashCode());
        result = prime * result + ((getRequestUrl() == null) ? 0 : getRequestUrl().hashCode());
        result = prime * result + ((getServletPath() == null) ? 0 : getServletPath().hashCode());
        result = prime * result + ((getAccept() == null) ? 0 : getAccept().hashCode());
        result = prime * result + ((getHost() == null) ? 0 : getHost().hashCode());
        result = prime * result + ((getReferer() == null) ? 0 : getReferer().hashCode());
        result = prime * result + ((getAcceptLanguage() == null) ? 0 : getAcceptLanguage().hashCode());
        result = prime * result + ((getAcceptEncoding() == null) ? 0 : getAcceptEncoding().hashCode());
        result = prime * result + ((getUserAgent() == null) ? 0 : getUserAgent().hashCode());
        result = prime * result + ((getConnection() == null) ? 0 : getConnection().hashCode());
        result = prime * result + ((getCookie() == null) ? 0 : getCookie().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", paramId=").append(paramId);
        sb.append(", eventId=").append(eventId);
        sb.append(", createTime=").append(createTime);
        sb.append(", uri=").append(uri);
        sb.append(", params=").append(params);
        sb.append(", sheme=").append(sheme);
        sb.append(", serverName=").append(serverName);
        sb.append(", serverPort=").append(serverPort);
        sb.append(", protocol=").append(protocol);
        sb.append(", remoteAddr=").append(remoteAddr);
        sb.append(", remoteHost=").append(remoteHost);
        sb.append(", characterEncoding=").append(characterEncoding);
        sb.append(", contentLength=").append(contentLength);
        sb.append(", contentType=").append(contentType);
        sb.append(", authType=").append(authType);
        sb.append(", httpMethod=").append(httpMethod);
        sb.append(", pathInfo=").append(pathInfo);
        sb.append(", pathTrans=").append(pathTrans);
        sb.append(", queryString=").append(queryString);
        sb.append(", remoteUser=").append(remoteUser);
        sb.append(", sessionId=").append(sessionId);
        sb.append(", requestUrl=").append(requestUrl);
        sb.append(", servletPath=").append(servletPath);
        sb.append(", accept=").append(accept);
        sb.append(", host=").append(host);
        sb.append(", referer=").append(referer);
        sb.append(", acceptLanguage=").append(acceptLanguage);
        sb.append(", acceptEncoding=").append(acceptEncoding);
        sb.append(", userAgent=").append(userAgent);
        sb.append(", connection=").append(connection);
        sb.append(", cookie=").append(cookie);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}